home *** CD-ROM | disk | FTP | other *** search
- /* example Prescript script file for TSMorph */
- /* This renders all (including 1st and last) images */
- /* $VER: Prescript_TSM 2.5 (16.1.94)
- */
- parse arg Base
- Frame = 0 /* current frame number starting from 1 */
- TotalFrames = 1 /* total number of frames */
- Single = 2 /* Single image warp, 0 for two image morph */
- Movement = 3 /* movement * 1024 */
- Red1 = 4 /* red portion of image 1 * 1024 */
- Green1 = 5 /* green portion of image 1 * 1024 */
- Blue1 = 6 /* blue portion of image 1 * 1024 */
- Red2 = 7 /* red portion of image 2 * 1024 */
- Green2 = 8 /* green portion of image 2 * 1024 */
- Blue2 = 9 /* blue portion of image 2 * 1024 */
- Produce = 10 /* actually produce output file */
- RPlus = 11 /* Add to Red */
- GPlus = 12 /* Add to Green */
- BPlus = 13 /* Add to Blue */
- RMinus = 14 /* Subtract from Red */
- GMinus = 15 /* Subtract from Green */
- BMinus = 16 /* Subtract from blue */
- DX = 17 /* X Skip */
- DY = 18 /* Y SKip */
- Start = 19 /* Start Frame Number */
-
- call StoreValue(Base,Produce,1)
-
- exit
-
- GetValue:Procedure
- Parse arg XBase, XAdd
- return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),4))
-
- StoreValue:Procedure
- Parse arg XBase, XAdd, XVal
- call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),RIGHT(D2C(XVal),4,D2C(0)),4)
- return
-